package com.self;

import java.util.HashMap;
import java.util.Map;

public class MapTest {

    public static void main(String[] args) {

        int len = 100_0000+128;
        Map<String,Object> map = new HashMap<>();

        long start = System.currentTimeMillis();
        for (int i = 128; i< len;i++) {
            map.put(i+"",newPojo(i));
        }
        long end = System.currentTimeMillis();

        System.out.println(end-start);
    }

    private static Pojo newPojo(int i) {
        Pojo pojo = new Pojo();
        pojo.id = 32122233+i;
        pojo.name = "曹阿伟"+i;
        pojo.phone = "13093752195"+i;
        pojo.idNum = "411403199310081123"+i;
        pojo.address = "河南省商丘市睢阳区路河镇"+i;
        pojo.provinceCode = "001003"+i;
        pojo.provinceName = "河南省"+i;
        pojo.cityCode = "411403"+i;
        pojo.cityName = "商丘市"+i;
        pojo.note = "昨日注册"+i;
        pojo.schoole = "山西大学"+i;
        pojo.degree = "本科"+i;
        return pojo;
    }

    static class Pojo {
        private int id;
        private String name;
        private String phone;
        private String idNum;
        private String address;
        private String provinceCode;
        private String provinceName;
        private String cityCode;
        private String cityName;
        private String note;
        private String schoole;
        private String degree;
    }
}


